package edu.whu.springdatademo.entity;

import lombok.*;
import org.hibernate.Hibernate;

import javax.lang.model.element.Name;
import javax.persistence.*;
import java.util.Objects;

@Entity(name="t_supplier")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Supplier {
    @Id
    Integer id;
    String name;
    @Column(name = "product_id")
    Integer productId;

    public Supplier(String name, Integer productId) {
        this.name = name;
        this.productId = productId;
    }
}
